<p>
    {foreach from=$posts item="post"}
    <h2>{$post['title']}</h2>
    {$post['content']}

    {/foreach}
</p>